|
|
|
|
|
|
|
Adding the Graph Control to Your Form |
|
|
|
|
|
|
|
|
It's very easy to create a good-looking graph using the graph tool. All you need to do is add the control to your form and fill it with data; the graph control does the rest. Let's create a simple graph to illustrate this point. |
|
|
|
|
| |
|
|
|
|
If you have not already loaded Visual Basic and added the graph control to the current project, review the preceding section and perform the required steps. |
|
|
|
|
|
|
|
|
|
|
Add the graph control to a blank form by double-clicking the graph control icon in the toolbox. You see that the graph control automatically displays a two-dimensional bar graph with some data. Stretch the control so that your form looks like the one shown in Figure 11.2. |
|
|
|
|
|
|
|
|
Figure 11.2.
Adding the graph control to your form. |
|
|
|
|
|
|
|
|
This is random data that the control automatically generates to help you get an idea of how the graph will look in your finished program. When you add your real data to the graph control, this random data disappears. |
|
|
|
|
|